'''
Created on 2013-6-17

@author: hanjiewu
'''
import logging
import os
logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', filename=os.path.join(os.getcwd(), 'main.log'), filemode='a', level=logging.DEBUG)
logging.warn("Watch out!")
logging.info("I told you so")

logging.debug("This message should go to the log file")
logging.info("So should this")
logging.warning('And this, too')

logging.warning('%s before you %s', 'Look', 'leap!')
